package cn.zlp.hrm.client;

import cn.zlp.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @program: hrm-parent
 * @author: Mr.Zhang
 * @create: 2022-01-13 16:04
 **/
@FeignClient(value = "HRM-THIRDPARTY",fallbackFactory = ThirdPartyServerClientFallBackFactory.class)
public interface ThirdPartyServerClient {
    /**
     * 图片验证码校验接口
     * @param params
     * @return
     */
    @PostMapping("/imageVerifyCode/verify")
    AjaxResult smsVerifyCode(@RequestBody Map<String,String> params);

    /**
     * 短信验证码校验
     * @param params
     * @return
     */
    @PostMapping("/smsVerifyCode/verify")
    AjaxResult verifySmsCode(@RequestBody Map<String,String> params);

    /**
     * 发送短信验证码
     * @param params
     * @return
     */
    @PostMapping("/smsVerifyCode/sendVerifyCode")
    AjaxResult sendSmsVerifyCode(@RequestBody Map<String,String> params);
}
